﻿namespace zijian666.DI.Abstractions;
/// <summary>
/// 自动装配处理器接口
/// </summary>
public interface IAutowiredHandler
{
    /// <summary>
    /// 重写装配的值
    /// </summary>
    /// <param name="context">装配上下文</param>
    /// <param name="descriptor">装配描述</param>
    /// <param name="instance">实例对象</param>
    /// <param name="value">当前值</param>
    /// <returns>重写后的值</returns>
    object Rewrite(IAutowiredContext context, AutowiredDescriptor descriptor, object instance, object value);
}
